
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/collada/dom/include )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/collada/dom/include/1.5 )
add_definitions(-DNO_BOOST)
add_definitions(-DPCRE_STATIC)


IF(MSVC)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup ")
ENDIF(MSVC)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
       link_directories(${CMAKE_SOURCE_DIR}/3dPart/collada/OSX)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
       link_directories(${CMAKE_SOURCE_DIR}/3dPart/collada/Linux)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")


if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
       link_directories(${CMAKE_SOURCE_DIR}/3dPart/boost/libs)
       link_directories(${CMAKE_SOURCE_DIR}/3dPart/libxml2-win32/lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")


add_executable(dae-conv main.cpp )

target_link_libraries(dae-conv
	dom boost_filesystem-mt boost_system-mt
	minizip z pcre pcrecpp xml2 tinyxml 
)

install(TARGETS dae-conv DESTINATION ${CMAKE_SOURCE_DIR}/bin/ )
